<script setup lang="ts">
import { RouterLink, RouterView } from 'vue-router'
import { onMounted, ref } from 'vue';
const active = ref(0);

</script>

<template>
<van-tabbar v-model="active">
  <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
  <van-tabbar-item icon="column" to="/list">科普</van-tabbar-item>
  <van-tabbar-item icon="description" to="/message" >消息</van-tabbar-item>
  <van-tabbar-item icon="contact" :to="'/me'">我的</van-tabbar-item>
</van-tabbar>
  <RouterView />
</template>


